package aop.view;

import aop.controller.UserController;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * Author：汤小洋
 * Date：2023-12-14 10:24
 * Description：<描述>
 */
public class UserView {
    public static void main(String[] args) {
        ApplicationContext ac = new ClassPathXmlApplicationContext("aop/spring.xml");

        UserController userController = (UserController) ac.getBean("userController");
        userController.login("admin","123456");

        System.out.println("----------------------------------------------------");

        System.out.println(userController.logout());
    }
}
